package com.sgb.member.entity;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class UserMsgEntity implements Serializable {
    @SerializedName("no")
    private String no;
    @SerializedName("realName")
    private String realName;
    @SerializedName("personAuth")
    private boolean isPersonAuth;
    @SerializedName("enterpriseAuth")
    private String enterpriseAuth;
    @SerializedName("userName")
    private String userName;
    @SerializedName("idCard")
    private String idCard;
    @SerializedName("enterprise")
    private SupplierAuthEntity enterprise;

    //    以下字段新接口未使用
    @SerializedName("accountName")
    private String accountName;
    @SerializedName("authTime")
    private long authTime;
    @SerializedName("createTime")
    private long createTime;
    @SerializedName("id")
    private int id;
    @SerializedName("lastLoginTime")
    private long lastLoginTime;
    @SerializedName("msgNum")
    private int msgNum;
    @SerializedName("telPhone")
    private String telPhone;
    @SerializedName("userRole")
    private int userRole;
    @SerializedName("improve")
    private String improve;//是否完善店铺信息0:未完善1:已完善
    @SerializedName("relevance")
    private String relevance;//是否关联企业 0:未关联1:已关联
    @SerializedName("relevanceName")
    private String relevanceName;//关联的企业名称
    @SerializedName("isDriverAuth")
    private String isDriverAuth;//同企业认证
    private String creditCode;
    private String name;
    private String reason;
    private long driverId;
    //团队认证人身份证号码
    private String idNumber;

    //团队认证人姓名
    private String contact;
    private TeamRespVO teamRespVO;
    private Boolean hasCompany;
    //是否是个人中心 0个人中心  1企业
    private int userType;
    private Driver driver;
    @SerializedName("teamAuthStatus")
    private int teamAuthStatus;//团队认证状态

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }


    public int getTeamAuthStatus() {
        return teamAuthStatus;
    }

    public void setTeamAuthStatus(int teamAuthStatus) {
        this.teamAuthStatus = teamAuthStatus;
    }


    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public void setDriverId(long driverId) {
        this.driverId = driverId;
    }

    public long getDriverId() {
        return driverId;
    }

    public void setDriverId(int driverId) {
        this.driverId = driverId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreditCode() {
        return creditCode;
    }

    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode;
    }

    public String getRelevance() {
        return relevance;
    }

    public void setRelevance(String relevance) {
        this.relevance = relevance;
    }

    public String getRelevanceName() {
        return TextUtils.isEmpty(relevanceName) ? "" : relevanceName;
    }

    public void setRelevanceName(String relevanceName) {
        this.relevanceName = relevanceName;
    }

    public String getImprove() {
        return improve;
    }

    public void setImprove(String improve) {
        this.improve = improve;
    }

    public String getUserName() {
        return TextUtils.isEmpty(userName) ? "" : userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public SupplierAuthEntity getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(SupplierAuthEntity enterprise) {
        this.enterprise = enterprise;
    }

    public String getEnterpriseAuth() {
        return TextUtils.isEmpty(enterpriseAuth) ? "NONE" : enterpriseAuth;
    }

    public void setEnterpriseAuth(String enterpriseAuth) {
        this.enterpriseAuth = enterpriseAuth;
    }

    public boolean isPersonAuth() {
        return isPersonAuth;
    }

    public void setPersonAuth(boolean personAuth) {
        isPersonAuth = personAuth;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public long getAuthTime() {
        return authTime;
    }

    public void setAuthTime(long authTime) {
        this.authTime = authTime;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(long lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public int getMsgNum() {
        return msgNum;
    }

    public void setMsgNum(int msgNum) {
        this.msgNum = msgNum;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public int getUserRole() {
        return userRole;
    }

    public void setUserRole(int userRole) {
        this.userRole = userRole;
    }

    public String getIsDriverAuth() {
        return isDriverAuth;
    }

    public void setIsDriverAuth(String isDriverAuth) {
        this.isDriverAuth = isDriverAuth;
    }

    public static class TeamRespVO {
        String businessTypeNo;

        public String getBusinessTypeNo() {
            return businessTypeNo;
        }

        public void setBusinessTypeNo(String businessTypeNo) {
            this.businessTypeNo = businessTypeNo;
        }
    }

    public TeamRespVO getTeamRespVO() {
        return teamRespVO;
    }

    public void setTeamRespVO(TeamRespVO teamRespVO) {
        this.teamRespVO = teamRespVO;
    }

    public Boolean getHasCompany() {
        return hasCompany;
    }

    public void setHasCompany(Boolean hasCompany) {
        this.hasCompany = hasCompany;
    }

    public static class Driver implements Serializable {
        String viceDriverLicense;
        String mainDriverLicense;
        String viceCertificate;
        String mainCertificate;
        String name;
        String reason;
        String idCard;
        int status;

        public String getViceDriverLicense() {
            return viceDriverLicense == null ? "" : viceDriverLicense;
        }

        public void setViceDriverLicense(String viceDriverLicense) {
            this.viceDriverLicense = viceDriverLicense;
        }

        public String getMainDriverLicense() {
            return mainDriverLicense == null ? "" : mainDriverLicense;
        }

        public void setMainDriverLicense(String mainDriverLicense) {
            this.mainDriverLicense = mainDriverLicense;
        }

        public String getViceCertificate() {
            return viceCertificate == null ? "" : viceCertificate;
        }

        public void setViceCertificate(String viceCertificate) {
            this.viceCertificate = viceCertificate;
        }

        public String getMainCertificate() {
            return mainCertificate == null ? "" : mainCertificate;
        }

        public void setMainCertificate(String mainCertificate) {
            this.mainCertificate = mainCertificate;
        }

        public String getIdCard() {
            return idCard == null ? "" : idCard;
        }

        public void setIdCard(String idCard) {
            this.idCard = idCard;
        }

        public String getName() {
            return name == null ? "" : name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getReason() {
            return reason == null ? "" : reason;
        }

        public void setReason(String reason) {
            this.reason = reason;
        }


        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

    }

    public Driver getDriver() {
        return driver;
    }

    public void setDriver(Driver driver) {
        this.driver = driver;
    }
}
